Repository navigation
fix(work): expose the exact candidate ranking key - #7607
Conversation
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning Review limit reachedThe included review limit has been reached and this organization has disabled usage-based review continuation. Wait for reviews to reset or ask a billing admin to change After included review limits. Next included review available in 1 minute. View limit details
Comment |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Candidate inspection at published head 4b61d43, integration base observed 6bd4e76; source merge-base 0e4e630. Author self-review, disposition REVIEW_INCOMPLETE.
Inspected the complete five-file diff, unchanged eight-factor tuple and risk/open-PR lookup, stored-key sort, portfolio/candidates/explain DTO projections, legacy serde defaults, malformed arrays, Markdown, portable-identity hashing, schema/spec/changelog and traceability. No remaining actionable source finding identified. The intermediate candidate's duplicate-row lookup drift was falsified by a real captured-input experiment and repaired before this published head; the original first-match lookup is now preserved literally.
Observed proof: exact-head focused suite 36/36 pass; independent process consumer 17/17 pass plus one duplicate-row public control. The baseline missing-key regression failed behaviorally on unchanged production. Independent consumer compares old fields/order to baseline, parses only emitted values to sort, verifies ties and whole-output determinism, and exercises empty/malformed input and usage failures. All three command projections agree. Baseline doctor/check-fast/narrow compile passed. Final-head check-fast has passed fmt/static-language/catalog/support-tiers/no-panic/allow-attributes/file-policy and is running strict workspace Clippy; precommit aggregate is pending.
Compatibility: field is additive under existing v1 envelopes; new readers accept legacy omission without inventing a zero key. Older strict DTO readers need this optional field declaration; regenerated portable digests change because they include candidate DTO bytes. Original candidate order, old values, prose and ranking authority remain. Cache #7520/#7578 are untouched. No analyzer/platform-specific/process-launch/dependency/workflow delta, so no broader platform or security claim is added.
Missing: final local aggregate results, hosted required checks/artifacts and a completed published-head integration review. Gemini and CodeRabbit currently report quota limitations, which are missing provider review, not clean review. No REVIEW_READY, auto-merge or merge authorization decision is asserted by this record.
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
|
Warning You have reached your daily quota limit. Please wait up to 24 hours and I will start processing your requests again! |
EffortlessSteven
left a comment
There was a problem hiding this comment.
Refreshed author self-review at published head 85fa990. Disposition REVIEW_INCOMPLETE; no remaining actionable source finding identified.
Inspected the complete final change and the delta from the prior review: explicit fallible malformed-key check, portfolio Markdown key column / sorting-rule disclosure and row-level/legacy tests. The tuple and original risk/open-PR lookups remain literally unchanged; the same computed key drives JSON and sorting. All three Markdown paths now agree with the schema/spec contract. New legacy rows preserve absent keys; older strict readers need the optional field; regenerated portfolio digests change as documented. No cache, analyzer, platform-specific or workflow authority change.
Observed exact-head proof: 36/36 focused tests; scoped all-targets strict Clippy; independent consumer 18/18 actual-command checks plus duplicate-row control. Wrong-old behavior was distinguished by the missing-key RED and actual portfolio Markdown omission control. Current executable SHA256 3966c56ea3f8d73a0e69e53c8cdf21d5de6794404f54c7a0d278bf65363ae075. Devin finding repaired, reply read back, thread resolution read back. Hosted CI and Source of Truth passed for this head. Earlier baseline evidence remains bound to 0e4e630; superseded interrupted aggregates are not passes.
Missing: final local check-fast/precommit aggregates, required Ready-triggered Rust qualification and other hosted artifacts, fresh final integration review. Ready now requests qualification; it is not REVIEW_READY or a merge claim. Gemini/CodeRabbit quotas are missing provider review. Native Windows/full-suite completeness and release outcomes are not claimed. No auto-merge armed.
There was a problem hiding this comment.
Decision
- Needs reviewer attention before upstream: findings remain.
Confirmed findings
- Malformed-key test only covers wrong arity and one type-mismatch; absence (
null) and explicit-zero ([0,0,0,0,0,0,0,0]) are not asserted as distinct from absent-key semantics. Spec distinguishes these intentionally. - No third JSON sibling view was identified that projects WorkCandidateV1. Routes checked: compile_work_portfolio, build_candidates_view, build_explain_view. Helper family checked: ranking_tuple/rank_key, work_portfolio_markdown, candidate_markdown. ast-grep receipt absent in packet; sibling-projection coverage relies on the diff's stated three-view contract.
Verification questions
- Confirm malformed key array rejection covers empty, 7-element, 9-element, and string-element variants; serde deserialization of [i64;8] rejects all four.
Refuted
- Stored
ranking_keycould be None during sort and reorder candidates unexpectedly; refuted because: Diff computes key for all candidates before the sort closure runs; no candidate has None at sort time. Only post-deserialization of older external JSON would a key be absent, and that is handled by the legacy round-trip path. - Tests do not distinguish absent vs explicit-zero ranking_key (legacy semantics).; refuted because: Submaterial: spec text already pins the absent/null semantics; absence is asserted via legacy round-trip; the additive field is optional and untagged-zero remains serialized if present.
- rank_key is recomputed twice, so the stored ranking_key could disagree with the sort key used at ordering time.; refuted because: compile_work_portfolio computes rank_key(candidate) once into candidate.ranking_key, then sorts by left.ranking_key.cmp(&right.ranking_key). No second rank_key call between the assignment and the sort. Inputs (honesty_risk, has_open_pr) are captured before the loop and not mutated.
- Storing ranking_key on the candidate duplicates state and could be re-computed independently by the Markdown renderer, producing drift between JSON and Markdown orderings.; refuted because: The patch removes the original local rank_key closure from sort_by and centralizes the computation in compile_work_portfolio; both work_portfolio_markdown and candidate_markdown read the stored array, so the three projections (portfolio/candidates/explain) share one source of truth. Markdown parity is enforced by work_portfolio_serialized_ranking_key_reproduces_order.
Evidence gaps
- cargo-test is scheduled-late, receipt-absent at review time. Author claim of 36/36 work_portfolio tests passed plus 18/18 independent consumer checks rests on the candidate SHA 4b61d43/85fa990, not on the published head receipt.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Independent exact-head review: no blocking implementation, ordering, serialization or rendered-contract finding. REVIEW_INCOMPLETE for outstanding required hosted integration qualification; no merge or auto-merge credit.
reviewed_head_sha: 85fa990
integration_basis: source merge-base 0e4e630; main 5ba5912 has unchanged work_portfolio owner. Fresh merge-tree exit 0, combined tree 80fbc00ae9bd1df28b67072657e5ad91e2bb6ba2, composition only.
claim_boundary: expose the original eight-factor lexicographic key, retain ranking policy and first-match risk lookup, display key/tie-break in all three views, and accept legacy unavailable keys without invented zero values. Issue #7431 and SPEC0234 acceptance inspected. Ranking remains advisory; no autonomous selection, retention #7520/#7578, analyzer, workflow, release or deployment change.
changed_surfaces_and_semantic_owners_inspected: complete five-file diff; WorkCandidateV1 serde, unchanged ranking_tuple/rank_key input lookups, assignment before sort, candidates/explain cloning and filtering, both Markdown render owners and all three commands, portable_identity/identity-source construction, schema/spec docs, traceability and changelog.
blocking_findings: none.
non_blocking_suggestions: none remaining from the inspected current record.
refuted_or_stale_findings: prior Devin portfolio-Markdown omission is repaired at this head and its reply/resolution were read back. Independent actual commands now verify every portfolio table key and all three Markdown sorting-rule disclosures.
UB null-versus-zero question independently exercised against the real DTO in a test-only extension in the review-owned checkout: null deserializes to None and serializes with key omitted; [0,0,0,0,0,0,0,0] deserializes to Some([0;8]) and remains present on serialization. This one subject passed with native 0; malformed empty/7/9-element and string-element arrays and omitted legacy round-trip also passed. Production bytes unchanged; experimental test bytes restored afterward. No ast-grep receipt is required to establish these concrete routes: portfolio serializes WorkPortfolioSnapshotV1, candidates serializes WorkCandidatesViewV1, explain serializes WorkExplainViewV1; all carry the shared candidate and all were exercised as actual commands.
proof_and_ci_observed: Rust 1.95.0/Linux, initially clean detached exact head. cargo test -p xtask work_portfolio -- --nocapture: 36 passed, 0 failed/ignored, 3517 filtered in the owner suite; filtered integration binaries executing zero subjects are not counted as extra proof. Actual Cargo compiler-artifact identifies /workspace/ripr-swarm/target/debug/xtask from /workspace/review-7607/xtask/src/main.rs (explicit follow-up build fresh=true reuses the clean-head test build); frozen executable SHA256 9ee3e136e321e8b95020811abc2bcd52e505e3515c865a4598006a40aa4744d7.
Independent stdlib public consumer: 32 actual command invocations pass. Exactly 12 corpus candidates have eight integer keys. Sorting emitted (key,candidate_id) values from reversed input reproduces actual order, pinned first/last keys and a real equal-key ID tie. Portfolio output repeats byte-for-byte; candidates JSON equals portfolio rows; every explain JSON equals its portfolio row. Each of the 12 portfolio Markdown table rows has its exact key; candidates/explain Markdown show the same values and tie-break. Empty selection and unknown-ID refusal pass. A duplicated issue9105 with conflicting high-risk metadata produces two rows with the original first-match key [1,1,0,1,0,2,0,0], preserving existing policy.
Stored keys are assigned before sorting and never recalculated in the projections; all compiler-produced keys are Some, so Option ordering introduces no unavailable-key branch. Identity-source candidates are cloned after key assignment/sort, and ranking_key is not volatile, so regenerated digest changes are real and documented. Older strict DTO readers must recognize the new optional field; this does not claim universal old-reader compatibility.
proof_or_review_missing: required Routed Rust Small 38340814047 is still running, and no Ripr Rust Small Result has posted yet. No Ready re-toggle, duplicate CI, or settings change requested. Author Clippy/check-fast/precommit are reported evidence, not relabeled as independent executions. Provider quota is missing review, not approval.
affected_currentness_dimensions: production/key provenance, ordering, test/oracle, three JSON/Markdown consumer contracts, compatibility and identity reviewed at unchanged published head; hosted qualification pending.
residual_assumptions_and_non_claims: current-platform semantic proof only; no native Windows/full hosted matrix claim. Existing ranking policy, including duplicate first-match lookup, is preserved rather than redesigned.
Retained evidence: /workspace/proof-7607/{tests.log,build.jsonl,public.log,public-receipt.json,null-zero.log,null-zero-control.patch,null-zero-identity.txt,xtask-exact-head,test-null-zero-witness}; public receipt retains every argv/exit/stdout/stderr. Test-only patch SHA256 b0055c01e11f56706a7538f1aae0fb307fe885a916a091eafa228d2dcab03780; test witness SHA256 5625b32c5f1a39bed5f75fbf13437246b658404d3260e70a01b61bc66747d8d2.
disposition: REVIEW_INCOMPLETE for outstanding hosted proof; independent source/oracle/public-consumer PASS. Refresh required result, head, all substantive reviews/threads and protections before ordinary protected squash integration.
EffortlessSteven
left a comment
There was a problem hiding this comment.
Final published-head integration review: REVIEW_READY for 85fa990.
Independent review 5498478780 remains current: full source/projections/compatibility inspected; 36 focused tests and 32 actual-command consumer invocations pass; concrete production DTO null-versus-zero controls pass. The UB questions are answered by that native DTO experiment and actual portfolio/candidates/explain JSON/Markdown invocation, not inferred from source text. Devin's actual portfolio-Markdown omission is repaired and its thread remains resolved.
Required Routed Rust Small run 38340814047 and result check 115125089768 completed successfully. Selected GitHub-hosted Rust job 115111227236 completed all required checks, strict Clippy, tests/doctests, goldens, fixture/corpus and PR evidence. Completed actual log: 14,904 tests run, 14,904 passed, two skipped. The three changed ranking-key tests explicitly PASS. Current check inventory contains no failed/cancelled/timed-out required or advisory check; no unresolved review thread. Quota-limited providers are not counted as clean review; substantive independent semantic inspection and inspected available findings supply the review.
Fresh observed main 2ca3938 leaves the work_portfolio owner unchanged from its reviewed basis. Current-main merge-tree native 0, combined tree f37b61f086053081190eff463f063a9009a81fc8, composition only. No behind-only restack/rerun is warranted. Main metadata requires Ripr Rust Small Result; active main ruleset has zero required approving reviews and requires thread resolution, with no bypass actor. Full classic protection remains unreadable (prior integration 403), so ordinary expected-head guarded squash must preserve GitHub enforcement without admin/settings changes.
No source/oracle/compatibility or public-contract blocker remains. Ranking remains advisory, original first-match input semantics preserved, legacy unavailable keys retain their meaning, and regenerated portable identities intentionally include the additive field. Native Windows/full downstream/release outcomes are not claimed for this platform-neutral tuple/serde/projection change. Retention #7520/#7578 untouched. This disposition earns semantic/hosted readiness; it does not assert a merge has occurred.
Work portfolio JSON explains ranking in prose but omits the eight-integer tuple that orders candidates. Emit the actual
ranking_keyalongside existing factors in portfolio, candidates and explain JSON. All three Markdown views display the key and ascending lexicographic /candidate_idtie-break rule, including an unavailable state for legacy rows.Closes #7431. Governing contract: RIPR-SPEC-0234.
Candidate:
85fa990af5c6b7bc5e83160348a40b7f1414dd96; source base0e4e630d6bbaf520790d4207032d0afeb489a531.Acceptance: consumers can reproduce candidate order from JSON alone without changing the existing ranking policy. The original tuple and input lookups are unchanged, including first-match risk lookup for repeated issue rows. One computed key drives both sorting and serialization. Existing v1 envelopes and factor prose remain; legacy rows deserialize and round-trip without a fabricated zero key. Regenerated portable identity digests include the additive field. Older strict DTO readers must recognize the new optional field.
Observed exact-head proof (Rust 1.95.0, Linux x86_64):
cargo test -p xtask work_portfolio -- --nocapture: 36 passed, zero failed. Tests pin key values, JSON-derived ordering, actual ties, all JSON/Markdown projections, legacy round-trip/unavailable state, malformed arrays, empty selection, deterministic corpus variants and repeated issue rows.cargo clippy -p xtask --all-targets -- -D warnings: passed.3966c56ea3f8d73a0e69e53c8cdf21d5de6794404f54c7a0d278bf65363ae075.cargo xtask check-fast: passed 14 selected gates (strict workspace all-targets Clippy included), one fixture-contract gate skipped. Independently verified five changed paths and merge-base0e4e630d6.cargo xtask precommit: native exit 0; all emitted policy checks passed.115111227236: repository policy preflight in progress; required tests/doctests and output/fixture/corpus proof still pending. Other hosted qualification/review remains in flight.Discriminating controls: the missing-key regression failed behaviorally against unchanged base production (exit101). The portfolio Markdown omission was independently reproduced with the old actual command before repair. Exact-base doctor, check-fast (six gates, verified zero-path selector) and
cargo check -p xtask --all-targetspassed. Superseded interrupted aggregates are not passes. The prior Result-assertion lint finding is repaired with an explicit fallible check.Review: full five-file change, tuple/input owner, three projections, serde defaults, identity hashing, malformed/legacy/empty controls, docs/spec/changelog/traceability inspected. Devin's portfolio Markdown finding is repaired, replied to and resolution read back. Disposition
REVIEW_INCOMPLETE: local proof is complete; required hosted evidence and final published-head integration review remain pending. Gemini/CodeRabbit quota limits are missing provider review, not clean review. No native Windows or full CI claim.Changelog:
changelog.d/7431-work-ranking-key.md, canonical section/bullet/reference format. Evidence delta includes three traceability mappings and schema/spec docs. Support-tier semantics and workflow/gate behavior are unchanged; CI economics n/a.Rollback: remove the additive key/projections and restore sorting through the unchanged tuple function. Non-goals: ranking-policy or autonomous-selection changes, analyzer/gate/dependency/process changes, cache export/retention #7520 or Cargo-cache identity #7578, releases or deployment. No stack or prerequisite PR; no successor selected.
Ownership: #7440 is actively owned and excluded. Before publication, current source, issue comments and all-state finding-specific web PR searches showed no equivalent #7431 candidate. API searches were rate-limited; git fetch/push and connector issue reads/writes worked.